import request from '@/utils/request'

// 查询资产调拨列表
export function listAssetDb(query) {
  return request({
    url: '/sales/AssetDb/list',
    method: 'get',
    params: query
  })
}

// 查询资产调拨详细
export function getAssetDb(id) {
  return request({
    url: '/sales/AssetDb/' + id,
    method: 'get'
  })
}

// 新增资产调拨
export function addAssetDb(data) {
  return request({
    url: '/sales/AssetDb',
    method: 'post',
    data: data
  })
}

// 修改资产调拨
export function updateAssetDb(data) {
  return request({
    url: '/sales/AssetDb',
    method: 'put',
    data: data
  })
}

// 删除资产调拨
export function delAssetDb(id) {
  return request({
    url: '/sales/AssetDb/' + id,
    method: 'delete'
  })
}

// 调拨审核
export function dbsh(data) {
  return request({
    url: '/sales/AssetDb/sh',
    method: 'post',
    data: data
  })
}

//取消调拨审核
export function dbshqx(data) {
  return request({
    url: '/sales/AssetDb/qxsh',
    method: 'post',
    data: data
  })
}
